<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>YOU - Edit Photo</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>
<div class="container">
    <?php
        include 'header2.php';
		
		require_once('config.php');
    	$user_id = $_COOKIE['id_active'];
    ?>
    <div class="content">
    	<div class="headcontent">
            <span class="randomtext" style="margin-left:50px">Hi, <?php
																	$sql="SELECT fullname FROM user WHERE iduser='$user_id'";
																	$result=mysql_query($sql);
																	while($res = mysql_fetch_array($result))
																	{
																		$nama = $res['fullname'];
																	}
																	echo $nama; 
																?></span>
            <span class="randomtext" style="padding-left:850px">EDIT PHOTO</span>
        	<hr/>
        </div>
    	<div class="singlecontent" style="width:650px">
            <div>
                <form method="post" enctype="multipart/form-data">
                    <div class="items">
                        <label>File</label>
                        <input type="file" name="fphoto"/>
                        <span class="validationtext" id="u_fname"></span>
                    </div>
                    <div class="items">
                        <label>Category</label>
                        <select name="kateg">
                            <option>Kategori 1</option>
                            <option>Kategori 2</option>
                            <option>Kategori 3</option>
                        </select>
                    </div>
                    <div class="items">
                        <label>Access</label>
                        <select name="access">
                            <option>Active User</option>
                            <option>Follower</option>
                            <option>Private</option>
                        </select>
                    </div>
                    <div class="items">
                        <label>Comment</label>
                        <select name="comment">
                            <option>Enable</option>
                            <option>Disable</option>
                        </select>
                    </div>
                    <div class="items">
                        <label>Description</label>
                        <textarea name="desc" rows="2" cols="25"></textarea>
                        <div class="validationtext" id="u_desc"></div>
                    </div>
                    <div class="items">
                        <label>Keywords</label>
                        <input type="text" name="key" style="width:220px" />
                        <div class="validationtext" id="u_key"></div>
                    </div>
                    <div class="items">
                        <label>Taken Date</label>
                        <input type="text" name="tgl_ambil" style="width:220px" />
                        <div class="validationtext" id="u_tglambil"></div>
                    </div>
                    <div class="items">
                        <label>Tags</label>
                        <input type="text" name="tag" style="width:220px" />
                        <div class="validationtext" id="u_tag"></div>
                    </div>
                    <div class="items">
                        <button type="submit" style="margin-left:220px">Save Changes</button>
                    </div>
                </form>
            </div>
    	</div>
    </div>
    <div class="footer"></div>
</div>
</body>
</html>
